package day4.作业1026.作业07;

public class Yuan extends Image{
    private final static double yzl=3.14;
    private double bj;

    public Yuan(double bj) {
        this.bj = bj;
    }

    @Override
    public void mianji() {
        double mj=bj*bj*yzl;
        System.out.println("半径为"+bj+"的圆的面积为"+mj);
    }

    @Override
    public void zhouchang() {
        double zc = 2*bj*yzl;
        System.out.println("半径为"+bj+"的圆的周长为"+zc);
    }
}
